package com.zhiyou100.blog.dao;

import com.zhiyou100.blog.entity.User;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-10-22 10:21
 */
public interface UserDao {
    //获取粉丝数量
    long getFenCountByStartId(int uStartId);

    //获取粉丝集合
    List<User> getListFenById(int uStartId);

    //获取等级
    List<User> getUserLvById(int uid);

    User getOneByName(String name);

    User getOneById(int uid);

    int addOne(User user);

    int updateUser(User user);

    //查询本次的明星会员 只查询4个 固定
    List<User> getListOrderByMaxScore();

    int getCount();

}
